home *** CD-ROM | disk | FTP | other *** search
- Path: colossus.holonet.net!shawn
- From: shawn@news.mdli.com (Shawn Lavin)
- Newsgroups: comp.lang.c
- Subject: Re: fopen not working
- Date: 12 Feb 1996 23:01:01 GMT
- Organization: HoloNet National Internet Access System: 510-704-1058/modem
- Message-ID: <4fogrd$ku3@colossus.holonet.net>
- References: <4fjnj1$4q@fig.leba.net>
- NNTP-Posting-Host: jubal.mdli.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- So what is in the string when you want to read in a new file is :
-
- "XXXXXmyfilename.dat\n"
-
- The relevant thing is the newline character at the end. Your operating
- system is probably like most others in that a newline is not a valid
- part of a file name.
-
- Hint : fgets() leaves a newline when it is encountered before the
- limit of the number of characters to be read is reached.
-
- --
- Shawn Lavin
- (shawn@mdli.com)
-
- As always, my opinions are my own
-